import { useAppStore } from '@/store/modules/app'

export function useAppSetting() {
  const appStore = useAppStore()

  const getCollapsed = computed(() => appStore.collapsed)
  const toggleCollapsed = computed(() => {
    appStore.switchCollapsed()
  })

  return {
    getCollapsed,
    toggleCollapsed,
  }
}
